const routers = [{
        path: '/',
        name: "Dashboard",
        redirect: '/home',
    },
    {
        path: '/home',
        name: "home",
        meta: {
            title: "环保公示首页"
        },
        redirect: '/home/HomePublic',
        // redirect: '/home/OneofPublic',
        component: (resolve) => require(['./components/main/main.vue'], resolve),
        children: [{
                path: 'HomePublic',
                name: 'HomePublic',
                meta: {
                    title: '环保公示'
                },
                component: (resolve) => require(['./views/HomePublic.vue'], resolve)
            },{
                path: 'OnePublicList',
                name: 'OnePublicList',
                meta: {
                    title: '一次公示'
                },
                component: (resolve) => require(['./views/OnePublicList.vue'], resolve)
            },{
                path: 'TwoPublicList',
                name: 'TwoPublicList',
                meta: {
                    title: '二次公示'
                },
                component: (resolve) => require(['./views/TwoPublicList.vue'], resolve)
            },{
                path: 'CheckPublicList',
                name: 'CheckPublicList',
                meta: {
                    title: '验收公示'
                },
                component: (resolve) => require(['./views/CheckPublicList.vue'], resolve)
            },{
                path: 'AllPublicList',
                name: 'AllPublicList',
                meta: {
                    title: '全本公示'
                },
                component: (resolve) => require(['./views/AllPublicList.vue'], resolve)
            },{
                path: 'PublicEditor',
                name: 'PublicEditor',
                meta: {
                    title: '发布公示'
                },
                component: (resolve) => require(['./views/PublicEditor.vue'], resolve)
            },{
                path: 'MangePublic',
                name: 'MangePublic',
                meta: {
                    title: '公示管理'
                },
                component: (resolve) => require(['./views/MangePublic.vue'], resolve)
            },{
                path: 'PublicDetials',
                name: 'PublicDetials',
                meta: {
                    title: '公示详情'
                },
                component: (resolve) => require(['./views/PublicDetials.vue'], resolve)
            },{
                path: 'SearchPublic',
                name: 'SearchPublic',
                meta: {
                    title: '搜索结果'
                },
                component: (resolve) => require(['./views/SearchPublic.vue'], resolve)
            },{
                path: 'OtherPublicList',
                name: 'OtherPublicList',
                meta: {
                    title: '其他公示'
                },
                component: (resolve) => require(['./views/OtherPublicList.vue'], resolve)
            },
        ]
    },

];
export default routers;
